<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:x="http://xseam.dev.java.net/seam"
    xmlns:rich="http://richfaces.org/rich"
    template="/layout/template.xhtml">

<ui:define name="body">
	
	<h2>Detalhar docente</h2>
	<hr style="color: #666666;width: 700px;float: left;"/>
	<br />
	
    <x:form id="detalharForm" showMessages="true" >

		<s:div>
		
			<x:inputText id="nomeUsuario" 
				maxlength="14" value="#{docente.usuario.nomeUsuario}" label="Nome de usuário: " size="20" readonly="true"/>
			<br class="clear" />
			
			<x:inputText id="tipoUsuario" 
				value="#{docente.getTipoUsuarioDescricao(docente.usuario.tipoUsuario)}" label="Tipo de Usuário: " readonly="true" size="20"/> 
			<br class="clear" />
			
			<x:inputText id="nome" label="Nome: " 
				value="#{docente.nome}" size="50" maxlength="60" readonly="true" />
			<br class="clear" />
			
			<x:inputText id="email" 
				label="Email: " value="#{docente.email}" size="60" maxlength="50" readonly="true" />
			<br class="clear" />
			
			<x:inputTextCPF id="cpf" 
				label="CPF: " value="#{docente.cpf}" readonly="true" />
			<br class="clear" />
			
			<x:inputText id="rg" 
				maxlength="14" value="#{docente.rg}" label="RG: " readonly="true" size="20"/>
			<br class="clear" />
			
			<x:inputTextTelefone id="fone" 
				value="#{docente.telefone}" label="Telefone: " readonly="true" />
			<br class="clear" />
			
			<x:inputTextDate id="dataNascimento" 
				label="Data de Nascimento: " value="#{docente.dataNascimento}" readonly="true" />
			<br class="clear" />
			
			<x:inputText id="inSexo" 
				value="#{docente.getSexoDescricao(docente.sexo)}" label="Sexo: " readonly="true" size="20" /> 
			<br class="clear" />
			
		</s:div>

		<s:div styleClass="actionButtons">
			<h:commandButton id="btnIncluir" immediate="true"
				value="Voltar" action="RESULT_BACK" title="Pressione aqui para voltar a tela anterior." />
				
		</s:div>
		
    </x:form>

 </ui:define>
</ui:composition>
